﻿using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using UI.Common.Lipsum;

namespace UI.WebControls
{
    [DefaultProperty("Count")]
    [ToolboxData("<{0}:LoremIpsum runat=\"server\"></{0}:LoremIpsum>")]
    public class LoremIpsum : WebControl, INamingContainer
    {
        #region props

        private string method = string.Empty;
        public string Method
        {
            get { return method; }
            set { method = value; }
        }

        public int Count { get; set; }

        #endregion

        protected override void Render(HtmlTextWriter writer)
        {
            writer.WriteLine(LipsumGenerator.GenerateHtml(Count));
        }

    }
}
